// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// No Node.js APIs are available in this process because
// `nodeIntegration` is turned off. Use `preload.js` to
// selectively enable features needed in the rendering
// process.

// const { app } = require('electron').remote

// window.addEventListener("DOMContentLoaded", () => {
//   // 退出
//   document.querySelector("#exit").onclick = function () {

//     app.exit()
//   }

//   document.querySelector("body").addEventListener("click", (e) => {
//     if (e.target.id == "exit") {
//       document.querySelector("#exit").onclick = function () {
//         app.exit()
//       }
//       document.querySelector("#exit").click()
//     }
//   })
// })



